import { request } from '@inbiz/utils';

export async function getPersons(params?: any) {
  return request('/Component', {
    method: 'POST',
    requestType: 'form',
    data: {
      module: 'ComponentClient',
      fun: 'InbizSearch',
      topNum: 10,
      'deptIds[]': '',
      'positionIds[]': '',
      'groupIds[]': '',
      account: '',
      realName: '',
      isChild: true,
      isLike: true,
      searchContent: params.searchContent,
      allowTypes: 'Dept,Position,Group,User',
      offUser: false,
      searchDeptId: '1',
      searchPositionId: '1',
    },
  });
}
